// ============================================================================
//
// LCP-net framework by Pierre CHATEL chatelp@gmail.com
// Distributed under GPLv3
// Copyright (C) THALES Land & Joint Systems, 2008, 2009. All rights reserved
//
// ============================================================================

/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package com.thalesgroup.preferenceFramework.models.LCPnet;

import org.eclipse.emf.common.util.EList;

import com.thalesgroup.preferenceFramework.models.Arc;
import com.thalesgroup.preferenceFramework.models.LCPnet.exceptions.LCPnetEvaluationException;

/**
 * <!-- begin-user-doc --> A representation of the model object '
 * <em><b>CI Arc</b></em>'. <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link com.thalesgroup.preferenceFramework.models.LCPnet.CIArc#getSelectorSet <em>Selector Set</em>}</li>
 *   <li>{@link com.thalesgroup.preferenceFramework.models.LCPnet.CIArc#getImportanceTable <em>Importance Table</em>}</li>
 * </ul>
 * </p>
 *
 * @see com.thalesgroup.preferenceFramework.models.LCPnet.LCPnetPackage#getCIArc()
 * @model
 * @generated
 */
public interface CIArc extends Arc {
	/**
	 * Returns the value of the '<em><b>Selector Set</b></em>' reference list.
	 * The list contents are of type
	 * {@link com.thalesgroup.preferenceFramework.models.LCPnet.LNode}. <!--
	 * begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Selector Set</em>' reference list isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Selector Set</em>' reference list.
	 * @see com.thalesgroup.preferenceFramework.models.LCPnet.LCPnetPackage#getCIArc_SelectorSet()
	 * @model required="true"
	 * @generated
	 */
	EList<LNode> getSelectorSet();

	/**
	 * Returns the value of the '<em><b>Importance Table</b></em>' containment reference.
	 * It is bidirectional and its opposite is '{@link com.thalesgroup.preferenceFramework.models.LCPnet.CIT#getArc <em>Arc</em>}'.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Importance Table</em>' containment reference
	 * isn't clear, there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Importance Table</em>' containment reference.
	 * @see #setImportanceTable(CIT)
	 * @see com.thalesgroup.preferenceFramework.models.LCPnet.LCPnetPackage#getCIArc_ImportanceTable()
	 * @see com.thalesgroup.preferenceFramework.models.LCPnet.CIT#getArc
	 * @model opposite="arc" containment="true" required="true"
	 * @generated
	 */
	CIT getImportanceTable();

	/**
	 * Sets the value of the '{@link com.thalesgroup.preferenceFramework.models.LCPnet.CIArc#getImportanceTable <em>Importance Table</em>}' containment reference.
	 * <!-- begin-user-doc
	 * --> <!-- end-user-doc -->
	 * @param value the new value of the '<em>Importance Table</em>' containment reference.
	 * @see #getImportanceTable()
	 * @generated
	 */
	void setImportanceTable(CIT value);

	/**
	 * Computes CI-Arc effective direction given an affection of values for the
	 * containing LCP-Net. This operation can be seen as compiling the CI-Arc to
	 * an I-Arc.
	 * 
	 * @param nodeValues
	 *            the affectation of values for the containing LCP-Net.
	 * @return a 2 cell list : first cell = start node, second cell = end node
	 *         of this "compiled" CI-Arc.
	 * @model lower="2" upper="2" nodeValuesMany="true"
	 * @generated
	 */
	EList<LNode> getArcDirection(EList<CNodeValue> nodeValues) throws LCPnetEvaluationException;

	/**
	 * Computes CI-Arc effective direction given an affection of values for the
	 * containing LCP-Net. This operation can be seen as compiling the CI-Arc to
	 * an I-Arc.
	 * 
	 * @param outcome
	 *            the affectation of values for the containing LCP-Net as an
	 *            outcome.
	 * @return a 2 cell table : first cell = start node, second cell = end node
	 *         of this "compiled" CI-Arc.
	 * @model lower="2" upper="2" outcomeRequired="true"
	 * @generated
	 */
	EList<LNode> getArcDirection(COutcome outcome) throws LCPnetEvaluationException;

} // CIArc
